<div id="steps" class="form complex">

<?
	$value = array(
		'id_batch'				=> "",
		'nama_batch'			=> "",
		'jam'					=> "",
		'tempat'				=> "",
		'tanggal_mulai'			=> "",
		'tanggal_selesai'		=> "",
		'act_form'				=> "batch/batch/insert_batch/"
	);
	
	if ($status == 'edit')
	{
		$value['id_batch'] = $id_batch;
		$value['nama_batch'] = $nama_batch;
		$value['jam'] = $jam;
		$value['tempat'] = $tempat;
		$value['tanggal_mulai'] = $tanggal_entry;
		$value['tanggal_selesai'] = $tanggal_selesai;
		
		$value['act_form'] = "batch/batch/update_batch/".$value['id_batch'];
	}
?>
<link rel="stylesheet" href="<?php echo base_url();?>js/development-bundle/themes/base/jquery.ui.all.css">
<script src="<?php echo base_url();?>js/development-bundle/ui/jquery.ui.core.js"></script>
<script src="<?php echo base_url();?>js/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="<?php echo base_url();?>js/development-bundle/ui/jquery.ui.datepicker.js"></script>

<script>
    $(function()
    {
        $("#tanggal_mulai").datepicker({
        });
        $("#tanggal_selesai").datepicker({
        });
    });
</script>

<?= form_open($value["act_form"]); ?>
                                                  
	<form name="frm" type="post">
		<fieldset class="step">
			<p>
				<label>Nama Angkatan/Batch</label>
				<input id="nama_batch" name="nama_batch" type="text" value="<?=$value['nama_batch'];?>" tabindex="1" />
			</p>
			<?php echo form_error('nama_batch'); ?>
			<p>
				<label>Jam</label>
				<input id="jam" name="jam" type="text" value="<?=$value['jam'];?>" tabindex="1" />
			</p>
			<p>
				<label>Tempat</label>
				<input id="tempat" name="tempat" type="text" value="<?=$value['tempat'];?>" tabindex="1" />
			</p>
			
			
			<p>
				<label>Tanggal Mulai</label>
				<input type="text" name="tanggal_mulai" id="tanggal_mulai" readonly="readonly" value="<?=$value['tanggal_mulai'];?>"/>
			</p>
			<?php echo form_error('tanggal_mulai'); ?>
			
			<p>
				<label>Tanggal Selesai</label>
				<input type="text" name="tanggal_selesai" id="tanggal_selesai" readonly="readonly" value="<?=$value['tanggal_selesai'];?>"/>
			</p>
			<?php echo form_error('tanggal_selesai'); ?>
			
			<p class="submit">
				<button id="registerButton" type="submit">Simpan</button>&nbsp;
				<button id="registerButton" type="reset">Reset</button>
				<button id="registerButton" type="submit" onClick="history.back();return false;">Kembali</button>
			</p >

		</fieldset>
	</form> 
<?php
echo form_close();
?>
</div>